package com.wish.client;

import com.wish.dynamicproxy.JDKMeipo;
import com.wish.inter.IPerson;
import com.wish.pojo.proxy.Son;
import com.wish.staticproxy.ProxyFather;

/**
 * @Author: suliucheng
 * @Date: 2021/2/24 21:06
 * @Description:
 */
public class Test {

    public static void main(String[] args) {
        ProxyFather proxyFather = new ProxyFather(new Son());
        proxyFather.findLover();

        System.out.println("==============");
        IPerson proxyInstance = (IPerson) new JDKMeipo().getProxyInstance(new Son());
        proxyInstance.findLover();
    }
}
